package com.haochang.chunkvod.model.hostess;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;

/**
 *     @author Yangjie
 *     className HostessInfo
 *     created at  2016/8/30  15:33
 *     咨客的 实体类
 */
public class HostessInfo implements Parcelable
{
	private int classifyType;//0是房间，1是桌台
	private int roomPeopleCount;
	private int orderNum;//该房间购物车已点商品数量
	private int roomWeight; // 权重
	private int isHonor; // 是否大客户
	private int customerCount; // 顾客数量
	private int unLeave;
	private int absNumber;//桌台批次

	private boolean isCustom = false;
	private boolean isOrder = false;
	private boolean isSelected = false;//是否被选中
	private boolean isShowTable = false;
	private boolean showBottom;//显示底部
	private boolean showRightDrawable;//显示右边排序按钮
	private boolean flickering;//是否闪烁

	private String roomStatusCn = "";
	private String roomRemark = "";
	private String chargingRoomTypeId;
	private String usableNum = "";
	private String reserveNum = "";//预留房间数
	private String content = "";//其他字段 通用
	private String timeZoom = "";//时间11:30
	private String type;
	private String statementTime;
	private String remainTime;
	private String reserveRoomCount = "";
	private String overType;
	private String overTime;
	private String money;
	private String person;
	private String p_avg;
	private String time;
	private String roomId; // 房间id
	private String areaId; // 区域id
	private String areaName; // 区域名字
	private String roomNum; // 房号
	private String roomTypeId; // 房间类型id
	private String roomType; // 房间类型描述
	private String roomStatus; // 房间状态
	private String usage; // 用途
	private String billId; // 账单id
	private String billStatus; // 账单状态
	private String start_time;
	private String end_time;
	private String unit;//单位
	private String num;//数量
	private String name;//名字
	private String remarks;//备注

	private ArrayList<HostessInfo> rooms;
	private ArrayList<HostessInfo> list;


	public HostessInfo()
	{

	}

	protected HostessInfo(Parcel in) {
		classifyType = in.readInt();
		roomPeopleCount = in.readInt();
		orderNum = in.readInt();
		roomWeight = in.readInt();
		isHonor = in.readInt();
		customerCount = in.readInt();
		unLeave = in.readInt();
		absNumber = in.readInt();
		isCustom = in.readByte() != 0;
		isOrder = in.readByte() != 0;
		isSelected = in.readByte() != 0;
		isShowTable = in.readByte() != 0;
		showBottom = in.readByte() != 0;
		showRightDrawable = in.readByte() != 0;
		flickering = in.readByte() != 0;
		roomStatusCn = in.readString();
		roomRemark = in.readString();
		chargingRoomTypeId = in.readString();
		usableNum = in.readString();
		reserveNum = in.readString();
		content = in.readString();
		timeZoom = in.readString();
		type = in.readString();
		statementTime = in.readString();
		remainTime = in.readString();
		reserveRoomCount = in.readString();
		overType = in.readString();
		overTime = in.readString();
		money = in.readString();
		person = in.readString();
		p_avg = in.readString();
		time = in.readString();
		roomId = in.readString();
		areaId = in.readString();
		areaName = in.readString();
		roomNum = in.readString();
		roomTypeId = in.readString();
		roomType = in.readString();
		roomStatus = in.readString();
		usage = in.readString();
		billId = in.readString();
		billStatus = in.readString();
		start_time = in.readString();
		end_time = in.readString();
		unit = in.readString();
		num = in.readString();
		name = in.readString();
		remarks = in.readString();
		rooms = in.createTypedArrayList(HostessInfo.CREATOR);
		list = in.createTypedArrayList(HostessInfo.CREATOR);
	}

	public static final Creator<HostessInfo> CREATOR = new Creator<HostessInfo>() {
		@Override
		public HostessInfo createFromParcel(Parcel in) {
			return new HostessInfo(in);
		}

		@Override
		public HostessInfo[] newArray(int size) {
			return new HostessInfo[size];
		}
	};

	public int getClassifyType() {
		return classifyType;
	}

	public void setClassifyType(int classifyType) {
		this.classifyType = classifyType;
	}

	public int getRoomPeopleCount() {
		return roomPeopleCount;
	}

	public void setRoomPeopleCount(int roomPeopleCount) {
		this.roomPeopleCount = roomPeopleCount;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

	public int getRoomWeight() {
		return roomWeight;
	}

	public void setRoomWeight(int roomWeight) {
		this.roomWeight = roomWeight;
	}

	public int getIsHonor() {
		return isHonor;
	}

	public void setIsHonor(int isHonor) {
		this.isHonor = isHonor;
	}

	public int getCustomerCount() {
		return customerCount;
	}

	public void setCustomerCount(int customerCount) {
		this.customerCount = customerCount;
	}

	public int getUnLeave() {
		return unLeave;
	}

	public void setUnLeave(int unLeave) {
		this.unLeave = unLeave;
	}

	public int getAbsNumber() {
		return absNumber;
	}

	public void setAbsNumber(int absNumber) {
		this.absNumber = absNumber;
	}

	public boolean isCustom() {
		return isCustom;
	}

	public void setCustom(boolean custom) {
		isCustom = custom;
	}

	public boolean isOrder() {
		return isOrder;
	}

	public void setOrder(boolean order) {
		isOrder = order;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean selected) {
		isSelected = selected;
	}

	public boolean isShowTable() {
		return isShowTable;
	}

	public void setShowTable(boolean showTable) {
		isShowTable = showTable;
	}

	public boolean isShowBottom() {
		return showBottom;
	}

	public void setShowBottom(boolean showBottom) {
		this.showBottom = showBottom;
	}

	public boolean isShowRightDrawable() {
		return showRightDrawable;
	}

	public void setShowRightDrawable(boolean showRightDrawable) {
		this.showRightDrawable = showRightDrawable;
	}

	public boolean isFlickering() {
		return flickering;
	}

	public void setFlickering(boolean flickering) {
		this.flickering = flickering;
	}

	public String getRoomStatusCn() {
		return roomStatusCn;
	}

	public void setRoomStatusCn(String roomStatusCn) {
		this.roomStatusCn = roomStatusCn;
	}

	public String getRoomRemark() {
		return roomRemark;
	}

	public void setRoomRemark(String roomRemark) {
		this.roomRemark = roomRemark;
	}

	public String getChargingRoomTypeId() {
		return chargingRoomTypeId;
	}

	public void setChargingRoomTypeId(String chargingRoomTypeId) {
		this.chargingRoomTypeId = chargingRoomTypeId;
	}

	public String getUsableNum() {
		return usableNum;
	}

	public void setUsableNum(String usableNum) {
		this.usableNum = usableNum;
	}

	public String getReserveNum() {
		return reserveNum;
	}

	public void setReserveNum(String reserveNum) {
		this.reserveNum = reserveNum;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTimeZoom() {
		return timeZoom;
	}

	public void setTimeZoom(String timeZoom) {
		this.timeZoom = timeZoom;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getStatementTime() {
		return statementTime;
	}

	public void setStatementTime(String statementTime) {
		this.statementTime = statementTime;
	}

	public String getRemainTime() {
		return remainTime;
	}

	public void setRemainTime(String remainTime) {
		this.remainTime = remainTime;
	}

	public String getReserveRoomCount() {
		return reserveRoomCount;
	}

	public void setReserveRoomCount(String reserveRoomCount) {
		this.reserveRoomCount = reserveRoomCount;
	}

	public String getOverType() {
		return overType;
	}

	public void setOverType(String overType) {
		this.overType = overType;
	}

	public String getOverTime() {
		return overTime;
	}

	public void setOverTime(String overTime) {
		this.overTime = overTime;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	public String getP_avg() {
		return p_avg;
	}

	public void setP_avg(String p_avg) {
		this.p_avg = p_avg;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public String getRoomTypeId() {
		return roomTypeId;
	}

	public void setRoomTypeId(String roomTypeId) {
		this.roomTypeId = roomTypeId;
	}

	public String getRoomType() {
		return roomType;
	}

	public void setRoomType(String roomType) {
		this.roomType = roomType;
	}

	public String getRoomStatus() {
		return roomStatus;
	}

	public void setRoomStatus(String roomStatus) {
		this.roomStatus = roomStatus;
	}

	public String getUsage() {
		return usage;
	}

	public void setUsage(String usage) {
		this.usage = usage;
	}

	public String getBillId() {
		return billId;
	}

	public void setBillId(String billId) {
		this.billId = billId;
	}

	public String getBillStatus() {
		return billStatus;
	}

	public void setBillStatus(String billStatus) {
		this.billStatus = billStatus;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public ArrayList<HostessInfo> getRooms() {
		return rooms;
	}

	public void setRooms(ArrayList<HostessInfo> rooms) {
		this.rooms = rooms;
	}

	public ArrayList<HostessInfo> getList() {
		return list;
	}

	public void setList(ArrayList<HostessInfo> list) {
		this.list = list;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(classifyType);
		dest.writeInt(roomPeopleCount);
		dest.writeInt(orderNum);
		dest.writeInt(roomWeight);
		dest.writeInt(isHonor);
		dest.writeInt(customerCount);
		dest.writeInt(unLeave);
		dest.writeInt(absNumber);
		dest.writeByte((byte) (isCustom ? 1 : 0));
		dest.writeByte((byte) (isOrder ? 1 : 0));
		dest.writeByte((byte) (isSelected ? 1 : 0));
		dest.writeByte((byte) (isShowTable ? 1 : 0));
		dest.writeByte((byte) (showBottom ? 1 : 0));
		dest.writeByte((byte) (showRightDrawable ? 1 : 0));
		dest.writeByte((byte) (flickering ? 1 : 0));
		dest.writeString(roomStatusCn);
		dest.writeString(roomRemark);
		dest.writeString(chargingRoomTypeId);
		dest.writeString(usableNum);
		dest.writeString(reserveNum);
		dest.writeString(content);
		dest.writeString(timeZoom);
		dest.writeString(type);
		dest.writeString(statementTime);
		dest.writeString(remainTime);
		dest.writeString(reserveRoomCount);
		dest.writeString(overType);
		dest.writeString(overTime);
		dest.writeString(money);
		dest.writeString(person);
		dest.writeString(p_avg);
		dest.writeString(time);
		dest.writeString(roomId);
		dest.writeString(areaId);
		dest.writeString(areaName);
		dest.writeString(roomNum);
		dest.writeString(roomTypeId);
		dest.writeString(roomType);
		dest.writeString(roomStatus);
		dest.writeString(usage);
		dest.writeString(billId);
		dest.writeString(billStatus);
		dest.writeString(start_time);
		dest.writeString(end_time);
		dest.writeString(unit);
		dest.writeString(num);
		dest.writeString(name);
		dest.writeString(remarks);
		dest.writeTypedList(rooms);
		dest.writeTypedList(list);
	}
}
